#!/usr/bin/env python2.5

import sys
import procpy

def help():
    print("%s pid [pid2] [pid3] ..." % (sys.argv[0]))
    sys.exit(0)

if len(sys.argv[1:])<1:
    help()

for i in sys.argv[1:]:
    try:
       print procpy.readproc_by_pid(int(i))
    except procpy.error:
       print "No such pid (%d)" % (int(i))
